<!DOCTYPE html><html lang="zh-Hans"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta name="description" content="huluo的技术博客"><meta name="keywords" content=""><meta name="author" content="kyren"><meta name="copyright" content="kyren"><title>Stay hungry, stay foolish | Kyren's Blog</title><link rel="shortcut icon" href="/melody-favicon.ico"><link rel="stylesheet" href="/css/index.css?version=1.9.0"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css?version=1.9.0"><meta name="format-detection" content="telephone=no"><meta http-equiv="x-dns-prefetch-control" content="on"><link rel="dns-prefetch" href="https://cdn.jsdelivr.net"><link rel="dns-prefetch" href="https://hm.baidu.com"><script>var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?cf87fcdbd9ab7cf93d894f7c219ae78f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();</script><meta http-equiv="Cache-Control" content="no-transform"><meta http-equiv="Cache-Control" content="no-siteapp"><script src="https://v1.hitokoto.cn/?encode=js&amp;charset=utf-8&amp;select=.footer_custom_text" defer></script><script>var GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容:${query}"}},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  hexoVersion: '6.2.0'
} </script><meta name="generator" content="Hexo 6.2.0"></head><body><i class="fa fa-arrow-right" id="toggle-sidebar" aria-hidden="true"></i><div id="sidebar" data-display="false"><div class="author-info"><div class="author-info__avatar text-center"><img src="https://avatars.githubusercontent.com/u/5827823?v=4"></div><div class="author-info__name text-center">kyren</div><div class="author-info__description text-center">huluo的技术博客</div><div class="follow-button"><a target="_blank" rel="noopener" href="https://github.com/huluo666">Follow Me</a></div><hr><div class="author-info-articles"><a class="author-info-articles__archives article-meta" href="/archives"><span class="pull-left">文章</span><span class="pull-right">239</span></a><a class="author-info-articles__tags article-meta" href="/tags"><span class="pull-left">标签</span><span class="pull-right">41</span></a><a class="author-info-articles__categories article-meta" href="/categories"><span class="pull-left">分类</span><span class="pull-right">29</span></a></div><hr><div class="author-info-links"><div class="author-info-links__title text-center">Links</div><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:9090/">Jira</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:8090/">Confluence</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://bloc.leniugame.com/">Leniu</a></div></div></div><nav class="no-bg" id="nav"><div id="page-header"><span class="pull-left"> <a id="site-name" href="/">Kyren's Blog</a></span><i class="fa fa-bars toggle-menu pull-right" aria-hidden="true"></i><span class="pull-right menus">   <a class="site-page" href="/">主页</a><a class="site-page" href="/essay">随笔</a><a class="site-page" href="/archives">归档</a><a class="site-page" href="/tags">标签</a><a class="site-page" href="/categories">分类</a><a class="site-page" href="/about">关于</a></span><span class="pull-right"><a class="site-page social-icon search"><i class="fa fa-search"></i><span> 搜索</span></a></span></div><div id="site-info"><div id="site-title">Kyren's Blog</div><div id="site-sub-title">Stay hungry, stay foolish</div><div id="site-social-icons"><a class="social-icon" href="https://github.com/huluo666" target="_blank" rel="noreferrer noopener nofollow"><i class="fa-github fa"></i></a></div></div></nav><div id="content-outer"><div class="layout" id="content-inner"><div class="recent-post-item article-container"><a class="article-title" href="/2017/08/02/Android%E5%BC%80%E5%8F%91-Java%E5%9F%BA%E7%A1%801/">Android开发-Java基础1</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-08-02</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/Java/">Java</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/Java/">Java</a></span><div class="content">Java学习
12345678910111213141516171819202122232425262728293031//http://www.weixueyuan.net/view/5947.html//注意Java是大小写敏感的//class --java 文件名public class He ...</div><a class="more" href="/2017/08/02/Android%E5%BC%80%E5%8F%91-Java%E5%9F%BA%E7%A1%801/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/08/02/Mac-UTI%E6%94%AF%E6%8C%81/">iOS UTI支持</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-08-02</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/essay/">essay</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/iOS/">iOS</a></span><div class="content">office文件的iOS-UTI支持
系统声明的统一类型标识符https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUnifor ...</div><a class="more" href="/2017/08/02/Mac-UTI%E6%94%AF%E6%8C%81/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/08/02/NSTask%E4%BD%BF%E7%94%A8/">NSTask 使用</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-08-02</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/Mac/">Mac</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/Mac/">Mac</a></span><div class="content">创建和初始化一个NSTask对象
一些属性 返回任务信息
123456789101112131415161718192021@property(copy) NSArray&lt;NSString *&gt; *arguments  //NSString对象数组包含调用时使用的参数。如果参数是nill ...</div><a class="more" href="/2017/08/02/NSTask%E4%BD%BF%E7%94%A8/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/08/02/Xcode8%E6%8F%92%E4%BB%B6/">Xcode 插件</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-08-02</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/iOS/">iOS</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/iOS/">iOS</a></span><div class="content">Getter 函数自动补全插件
http://www.ctolib.com/AutomaticCompletionPlugin.html
利用这个protoc插件生成Swift代码
http://www.ctolib.com/swift-protobuf-plugin.html
代码片段
https ...</div><a class="more" href="/2017/08/02/Xcode8%E6%8F%92%E4%BB%B6/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/08/02/iOS%20%E5%90%AF%E5%8A%A8%E7%94%BB%E9%9D%A2%20App%E5%9B%BE%E6%A0%87%E5%B0%BA%E5%AF%B8%20%E9%A1%B9%E7%9B%AE%E4%B8%8A%E6%9E%B6%E5%BF%85%E9%A1%BBIcon%E8%AE%BE%E7%BD%AE/">iOS 启动画面 App图标尺寸 项目上架必须Icon设置</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-08-02</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/Java/">Java</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/Java/">Java</a></span><div class="content">1.1AppIcon图标尺寸如下：说明：AppIcon （6张） AppStore Icon （1张）（png格式）

AppStore Icon — 1024x1024（必须）
1.2启动画面LaunchImage图标尺寸如下：说明：至少切下图中显示的4张尺寸（png格式）
如果需要适配ipad  ...</div><a class="more" href="/2017/08/02/iOS%20%E5%90%AF%E5%8A%A8%E7%94%BB%E9%9D%A2%20App%E5%9B%BE%E6%A0%87%E5%B0%BA%E5%AF%B8%20%E9%A1%B9%E7%9B%AE%E4%B8%8A%E6%9E%B6%E5%BF%85%E9%A1%BBIcon%E8%AE%BE%E7%BD%AE/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/08/02/iOS-UIWebview%E6%B5%8B%E8%AF%95/">iOS webview测试</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-08-02</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/iOS/">iOS</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/iOS/">iOS</a></span><div class="content">ios webview测试
12345Error: /usr/local must be writable!解决 sudo chown -R $(whoami) /usr/local重新安装 sudo ruby -e &quot;$(curl -fsSL https://raw.githubuser ...</div><a class="more" href="/2017/08/02/iOS-UIWebview%E6%B5%8B%E8%AF%95/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/08/02/%E4%BD%BF%E7%94%A8%20CSSJSON%20Converts%20CSS%20to%20JSON/">iOS使用js库实现css转换json</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-08-02</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/JavaScript/">JavaScript</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/JavaScript/">JavaScript</a></span><div class="content">https://github.com/aramk/CSSJSON
在cssjson.js文件末尾加入css转换json然后json字符串输出函数
12345function exampleCSSJSON(cssString) &#123;    var json = CSSJSON.toJSON(c ...</div><a class="more" href="/2017/08/02/%E4%BD%BF%E7%94%A8%20CSSJSON%20Converts%20CSS%20to%20JSON/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/06/06/MAC%E4%B9%8Bhttp%E5%91%BD%E4%BB%A4%E8%A1%8C%E5%B7%A5%E5%85%B7/">MAC之http命令行工具curl</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-06-06</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/shell/">shell</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/shell/">shell</a></span><div class="content">MAC之http命令行工具curl

curl是一个向服务器传输数据的工具，支持http、ftp、ftps、scp、sftp、tftp、telnet协议，它可以作为调试接口的利器

curl默认是GET方法，使用-X参数可以支持其他动词
12curl -X POST www.baidu.comcur ...</div><a class="more" href="/2017/06/06/MAC%E4%B9%8Bhttp%E5%91%BD%E4%BB%A4%E8%A1%8C%E5%B7%A5%E5%85%B7/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/06/05/Xcode8%E6%8F%92%E4%BB%B6%E5%BC%80%E5%8F%91/">Xcode8插件开发</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-06-05</time><div class="content">Xcode8以后, 以前的插件都不能用了。Apple官方推荐的方式Xcode Source Editor Extension来自己制作插件. Extension的方式开发的插件, 可以独立上架AppStore, 并且是独立于Xcode工程独立运行的. 但是没有UI交互, 不能在后台运行并且只能在开发 ...</div><a class="more" href="/2017/06/05/Xcode8%E6%8F%92%E4%BB%B6%E5%BC%80%E5%8F%91/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/05/08/Mac%E7%BB%88%E7%AB%AF%E5%BF%AB%E6%8D%B7%E9%94%AE/">Mac iterm2快捷键</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-05-08</time><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/Mac/">Mac</a></span><div class="content">按单词移动光标
option+b ：前移一个单词
option+f ：后移一个单词

b 和 f 分别是 backward 和 forward 的意思
移动到行首行尾
fn+left ：移动到行首
fn+right ：移动到行尾
control+a ：移动到行首
control+e ：移动到行尾

 ...</div><a class="more" href="/2017/05/08/Mac%E7%BB%88%E7%AB%AF%E5%BF%AB%E6%8D%B7%E9%94%AE/#more" style="margin-top: 14px">阅读更多</a><hr></div><nav id="pagination"><div class="pagination"><a class="extend prev" rel="prev" href="/page/9/"><i class="fa fa-chevron-left"></i></a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/9/">9</a><span class="page-number current">10</span><a class="page-number" href="/page/11/">11</a><span class="space">&hellip;</span><a class="page-number" href="/page/24/">24</a><a class="extend next" rel="next" href="/page/11/"><i class="fa fa-chevron-right"></i></a></div></nav></div></div><footer><div class="layout" id="footer"><div class="copyright">&copy;2022 By kyren</div><div class="framework-info"><span>驱动 - </span><a target="_blank" rel="noopener" href="http://hexo.io"><span>Hexo</span></a><span class="footer-separator">|</span><span>主题 - </span><a target="_blank" rel="noopener" href="https://github.com/Molunerfinn/hexo-theme-melody"><span>Melody</span></a></div><div class="footer_custom_text">hitokoto</div><div class="busuanzi"><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><span id="busuanzi_container_site_uv"><i class="fa fa-user"></i><span id="busuanzi_value_site_uv"></span><span></span></span><span class="footer-separator">|</span><span id="busuanzi_container_site_pv"><i class="fa fa-eye"></i><span id="busuanzi_value_site_pv"></span><span></span></span></div></div></footer><i class="fa fa-arrow-up" id="go-up" aria-hidden="true"></i><script src="https://cdn.jsdelivr.net/npm/animejs@latest/lib/anime.min.js"></script><script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-animate@latest/velocity.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-ui-pack@latest/velocity.ui.min.js"></script><script src="/js/utils.js?version=1.9.0"></script><script src="/js/fancybox.js?version=1.9.0"></script><script src="/js/sidebar.js?version=1.9.0"></script><script src="/js/copy.js?version=1.9.0"></script><script src="/js/fireworks.js?version=1.9.0"></script><script src="/js/transition.js?version=1.9.0"></script><script src="/js/scroll.js?version=1.9.0"></script><script src="/js/head.js?version=1.9.0"></script><script src="/js/search/local-search.js"></script><script>if(/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)) {
  $('#nav').addClass('is-mobile')
  $('footer').addClass('is-mobile')
  $('#top-container').addClass('is-mobile')
}</script><div class="search-dialog" id="local-search"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章"></div></div></div><hr><div id="local-search-results"><div id="local-hits"></div><div id="local-stats"><div class="local-search-stats__hr" id="hr"><span>由</span> <a target="_blank" rel="noopener" href="https://github.com/wzpan/hexo-generator-search" style="color:#49B1F5;">hexo-generator-search</a>
 <span>提供支持</span></div></div></div><span class="search-close-button"><i class="fa fa-times"></i></span></div><div class="search-mask"></div></body></html>